package model

import "gorm.io/gorm"

type Goods struct {
	gorm.Model
	Name    string `gorm:"type:varchar(30)"json:"name"`
	Age     string `gorm:"type:varchar(30)"json:"age"`
	BrandId int    `gorm:"type:int"json:"brandId"`
	ClassId int    `gorm:"type:int"json:"classId"`
}
type Brand struct {
	gorm.Model
	Name string `gorm:"type:varchar(30)"json:"name"`
}
type Class struct {
	gorm.Model
	Name string `gorm:"type:varchar(30)"json:"name"`
}

type Shops struct {
	Goods
	BrandName string `gorm:"type:varchar(30)"json:"brandName"`
	ClassName string `gorm:"type:varchar(30)"json:"className"`
}
